#ifndef THREADAFFINITY_H
#define THREADAFFINITY_H

#include <QSet>

class IThreadAffinity;

/**
 * @brief The ThreadAffinity class
 * 线程亲和性设置
 */
class ThreadAffinity
{
public:
    ThreadAffinity();
    ~ThreadAffinity();
    bool setAffinity(const QSet<int>& processorIndexs);

private:
    IThreadAffinity* affinity;
};

#endif // THREADAFFINITY_H
